package org.surelink.radius.console.message;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.Arrays;
import java.util.UUID;

public class RespBase {



    public final static Response SUCCESS = new Response(0, "操作成功");
    public final static Response IP_AUTH_ERR = new Response(1, "IP鉴权失败");
    public final static Response ROUTE_ERR = new Response(2, "路由匹配失败");
    public final static Response MSG_FORMAT_ERR = new Response(3, "消息格式错误");
    public final static Response NOT_LOGIN_ERR = new Response(4, "未登录");
    public final static Response LOGIN_ERR = new Response(5, "登录失败");
    public final static Response VERSION_NOT_SUPPORT_ERR = new Response(6, "版本不支持");
    public final static Response REQ_FLOW_CTRL_ERR = new Response(7, "请求流控");
    public final static Response SERVER_BUSY_ERR = new Response(8, "服务端系统繁忙");
    public final static Response REFUSE_ACCEPT_ERR = new Response(9, "服务端拒绝受理业务");
    public final static Response NOT_EXIST_ERR = new Response(101, "不存在错误");
    public final static Response ALREADY_EXIST_ERR = new Response(102, "已存在错误");
    public final static Response DATA_FORMAT_ERR = new Response(103, "数据格式与要求的不一致");
    public final static Response NOT_RECORD_ERR = new Response(104, "未查询到任何记录");
    public final static Response FEE_TYPE_NOT_SUPPORT_ERR = new Response(105, "计费类型不支持业务");
    public final static Response CHARGE_AMOUT_NOT_ENOUGH_ERR = new Response(106, "余额不足");
    public final static Response UNKNOWN_ERR = new Response(9999, "未知错误");

    public final static String NULLSTR = "";


    public String genToken(){
         return UUID.randomUUID().toString().replace("-", "").toUpperCase();
    }


    public static void main(String args[]){
         System.out.println(Arrays.toString(new String[]{"1","2"}));
    }


}
